package com.cpi.cornpp.futuresversions.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.cpi.cornpp.futuresversions.view.CornFuturesVersionsView;

/**
 * Corn Futures Versions Form
 * @author Edgar Joao
 *
 */
public class CornFuturesVersionsForm extends ActionForm{

	/** Serial Version UID*/
	private static final long serialVersionUID = -5167703744956318388L;
	
	private int versionId;
	
	private CornFuturesVersionsView cornFuturesVersionsView;
	
	public CornFuturesVersionsForm() {
		super();
		this.cornFuturesVersionsView = new CornFuturesVersionsView();
	}

	public CornFuturesVersionsView getCornFuturesVersionsView() {
		return cornFuturesVersionsView;
	}

	public void setCornFuturesVersionsView(
			CornFuturesVersionsView cornFuturesVersionsView) {
		this.cornFuturesVersionsView = cornFuturesVersionsView;
	}

	public int getVersionId() {
		return versionId;
	}

	public void setVersionId(int versionId) {
		this.versionId = versionId;
	}		
	
	public void reset(ActionMapping mapping, HttpServletRequest request) {				
		cornFuturesVersionsView = new CornFuturesVersionsView();
	}
}
